﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VLine.InputDto._20220219
{
    /// <summary>
    ///  更新推送消息已读状态
    /// </summary>
    public class InputModifyPushMsg
    {
        /// <summary>
        ///  状态【0=忽略、1=已读】
        /// </summary>
        [Required(ErrorMessage = "状态必填项！")]
        [RegularExpression("^([0,1])$", ErrorMessage = "请正确输入状态：0=忽略；1=已读")]//大于0正则表达式
        public int status { get; set; }
        /// <summary>
        ///  推送用户列表主键列表
        /// </summary>
        [Required(ErrorMessage = "推送用户列表主键列表必填项！")]
        public List<ModifyPushModel> msgUserIDList { get; set; }
    }
    public class ModifyPushModel
    {
        /// <summary>
        ///  推送用户列表主键值
        /// </summary>
        public int id { get; set; }
    }
}